package br.seguranca
class ShiroRole {
	
	public static final PROFESSOR = "Professor"
	public static final FUNCIONARIO = "Funcionario"
	public static final SECRETARIO = "Secretario"
	

    static hasMany = [ users: ShiroUser, permissions: String ]
    static belongsTo = ShiroUser

    static constraints = {
        name(nullable: false, blank: false, unique: true)
    }
	
    String name
	
	public String toString(){
		return name
	}
}
